﻿#region 命名空间

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using WinnerCMS.BLL;
using WinnerCMS.WebFactory.Mvc;

#endregion

namespace WinnerCMS.WebUI.Controllers
{
    [TemplateRelevant]
    public class ArticleController : Controller
    {
        private static readonly ArticleManage Mybll = new ArticleManage();

        /// <summary>
        /// 显示文章
        /// </summary>
        /// <param name="id"></param>
        /// <param name="pageno"></param>
        /// <returns></returns>
        public ActionResult Show(int id, int pageno)
        {
            var info = Mybll.PublicShow(id);
            if (info == null)
            {
                return HttpNotFound();
            }
            return View(info.TemplateFileName, info);
        }
    }
}